﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ConfApp.Models
{
    public class Session
    {
        public Session()
        {
            Speakers = new List<Speaker>();
        }

        public bool IsScheduled
        {
            get { return Slot.ID != -1 && Room.ID != -1 && Track.ID != -1;}
        }

        public int ID { get; set; }
        public string LanguageCode { get; set; }
        public int Level { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public bool IsFavourite { get; set; }

        public Room Room { get; set; }
        public Track Track { get; set; }
        public Slot Slot { get; set; }
        public List<Speaker> Speakers { get; set; }

        public override string ToString()
        {
            return string.Format("[{0}] {1}", ID, Title);
        }
    }
}
